using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskCheckContorl
{
readonly static Action<TaskCheckContorl,object>[] _SetValues=new Action<TaskCheckContorl,object>[]{(r,t)=>r.ContorlMode=Reflection.ParseObject(t, r.ContorlMode),(r,t)=>r.ItemId=Reflection.ParseObject(t, r.ItemId),(r,t)=>r.ShapeId=Reflection.ParseObject(t, r.ShapeId)};
readonly static string[] _Columns=new string[]{"ContorlMode","ItemId","ShapeId"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"ContorlMode", this.ContorlMode);
AppendValue(action,"ItemId", this.ItemId);
AppendValue(action,"ShapeId", this.ShapeId);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[3];
cols[0]= RecordColumn.Column("ContorlMode",this.ContorlMode);
cols[1]= RecordColumn.Column("ItemId",this.ItemId);
cols[2]= RecordColumn.Column("ShapeId",this.ShapeId);
return cols;
}

}
}

